<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateCustomerorderTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateCustomerorderLabel_id}" for="id" />
                    <h:inputText id="id" value="#{customerorderController.selected.id}" title="#{bundle.CreateCustomerorderTitle_id}" required="true" requiredMessage="#{bundle.CreateCustomerorderRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.CreateCustomerorderLabel_amount}" for="amount" />
                    <h:inputText id="amount" value="#{customerorderController.selected.amount}" title="#{bundle.CreateCustomerorderTitle_amount}" required="true" requiredMessage="#{bundle.CreateCustomerorderRequiredMessage_amount}"/>
                    <h:outputLabel value="#{bundle.CreateCustomerorderLabel_confirmationNumber}" for="confirmationNumber" />
                    <h:inputText id="confirmationNumber" value="#{customerorderController.selected.confirmationNumber}" title="#{bundle.CreateCustomerorderTitle_confirmationNumber}" required="true" requiredMessage="#{bundle.CreateCustomerorderRequiredMessage_confirmationNumber}"/>
                    <h:outputLabel value="#{bundle.CreateCustomerorderLabel_createdDate}" for="createdDate" />
                    <h:inputText id="createdDate" value="#{customerorderController.selected.createdDate}" title="#{bundle.CreateCustomerorderTitle_createdDate}" required="true" requiredMessage="#{bundle.CreateCustomerorderRequiredMessage_createdDate}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateCustomerorderLabel_canceledDate}" for="canceledDate" />
                    <h:inputText id="canceledDate" value="#{customerorderController.selected.canceledDate}" title="#{bundle.CreateCustomerorderTitle_canceledDate}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateCustomerorderLabel_customerid}" for="customerid" />
                    <h:selectOneMenu id="customerid" value="#{customerorderController.selected.customerid}" title="#{bundle.CreateCustomerorderTitle_customerid}" required="true" requiredMessage="#{bundle.CreateCustomerorderRequiredMessage_customerid}">
                        <f:selectItems value="#{customerController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{customerorderController.create}" value="#{bundle.CreateCustomerorderSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{customerorderController.prepareList}" value="#{bundle.CreateCustomerorderShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/admin/admin.xhtml" value="#{bundle.CreateCustomerorderIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
